﻿namespace O1.Kernel.IO.Storage
{
    internal class VertexStore : AbstractFixedStore<Vertex>
    {
        public VertexStore(BlockArray<byte[]> storage, int maxValue, int[] deleted)
            : base(storage, maxValue, deleted)
        {
        }

        ////public Vertex Read(int targetId)
        ////{

        ////}

        ////public Vertex Read(TransactionToken token, int targetId)
        ////{

        ////}

        protected override int RecordSize
        {
            get { return Vertex.Size; }
        }

        protected override void WriteItem(Vertex item, byte[] buffer, int recordOffset)
        {
            item.Write(buffer, recordOffset);
        }

        protected override Vertex ReadItem(byte[] buffer, int recordOffset)
        {
            throw new System.NotImplementedException();
        }
    }
}
